/*
 * Copyright 2017 Baiyyy
 * @(#)TemperatureUploadTask.java
 */

package com.byyy.ccts.modules.task.task;

import com.byyy.ccts.core.utils.SpringContextHolder;
import com.byyy.ccts.modules.cc.service.ITempUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 温度上传任务
 * Created by DELL on 2018-6-7.
 */
@Component
public class TemperatureUploadTask {

    @Autowired
    private ITempUploadService tempUploadService;

    /**
     * 温度上传任务处理
     */
    public void run(String param) {
        this.tempUploadService = SpringContextHolder.getBean("tempUploadService");
        this.tempUploadService.tempUpload();
    }

}
